package ooday2;

import org.w3c.dom.ls.LSOutput;

public class Teacher extends Person{
    double salary;
    Teacher(String name,int age,String address,double salary){
        super(name,age,address);
        this.salary=salary;
    }
    void study(){
        System.out.println("名字叫"+name+"年龄为"+age+"的老师在教学");
    }
    void sayHi(){
        System.out.println("你好我叫"+name+"今年"+age+"家住"+address+"薪水为"+salary);

    }



}
